import {putMessage,intersect,SS_VALID} from '../Base.js';
import {MDCF_DRG} from '../DRG/MDCF_DRG.js';

export default function FN2_group(record){
    let adrg_zd=[];
    let adrg_zd1=[];
    let adrg_ss=["00.5500x010","00.5500x015","00.5500x016","39.5000x019","39.5000x025","39.5000x026","39.5007","39.5012","39.5017","39.7200x001","39.7400x001","39.7400x003","39.7900x015","39.7900x022","39.7900x023","39.7900x024","39.7900x029","39.7900x033","39.7900x037","39.7900x039","39.7900x043","39.7900x046","39.9000x011","39.9000x012","39.9000x016","39.9000x032","39.9000x033","39.9000x035","39.9003","39.9006","39.9014","39.9100x002","88.3900x001","88.5101","88.5102","88.6000","88.6102","88.6103","88.6200x001","88.6400x001","88.6400x002","88.6400x003","88.6401","88.6500x002","88.6500x005","88.6501","88.6502","88.6503","88.6600x002","88.6601","88.6602","88.6701","88.6702","88.6703","88.6800","99.1000x008","99.1000x010","99.1003"];
    let adrg_ss1=[];
    let adrg_ss2=[];
    let dept_list=[];
    if (true && record.ssList && adrg_ss.includes(record.ssList[0])){
        putMessage('符合FN2入组条件，匹配规则：主手术匹配');
        let drg=new MDCF_DRG();
        
        if (drg.FN21_group(record)){
            return 'FN21';
        }

        if (drg.FN23_group(record)){
            return 'FN23';
        }

        if (drg.FN25_group(record)){
            return 'FN25';
        }

        return 'FN2';
    }else{
        return '';
    }
}
  